//
//  YLTitleArrowNoSubCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/8/29.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLTitleArrowNoSubCell.h"

#import "YLGlobeHeader.h"
#import "YLIconTitleModel.h"
@interface YLTitleArrowNoSubCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UIView *line;


@end

@implementation YLTitleArrowNoSubCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setIconTitleModel:(YLIconTitleModel *)iconTitleModel
{
    _iconTitleModel = iconTitleModel;
    _icon.image = [UIImage imageNamed:iconTitleModel.icon];
    _titleLabel.text = iconTitleModel.title;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setHiddenLine:(BOOL)hiddenLine
{
    _hiddenLine = hiddenLine;
    _line.hidden = hiddenLine;
}

+ (CGFloat)cellHeight
{
    return YLScreenW * 93 / 750.0;
}

+ (NSString *)cellID
{
    return @"YLTitleArrowNoSubCell";
}

@end
